Optimal. Leaf size=74 \[ 2 b n x-x \left (a+b \log \left (c x^n\right )\right )-\frac {b n (1+e x) \log (1+e x)}{e}+\frac {(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}+\frac {b n \text {Li}_2(-e x)}{e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.412, Rules used = {2436, 2332,
2417, 2458, 45, 2393, 2352} \begin {gather*} \frac {b n \text {PolyLog}(2,-e x)}{e}+\frac {(e x+1) \log (e x+1) \left (a+b \log \left (c x^n\right )\right )}{e}-x \left (a+b \log \left (c x^n\right )\right )-\frac {b n (e x+1) \log (e x+1)}{e}+2 b n x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2332
Rule 2352
Rule 2393
Rule 2417
Rule 2436
Rule 2458
Rubi steps
\begin {align*} \int \left (a+b \log \left (c x^n\right )\right ) \log (1+e x) \, dx &=-x \left (a+b \log \left (c x^n\right )\right )+\frac {(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-(b n) \int \left (-1+\frac {(1+e x) \log (1+e x)}{e x}\right ) \, dx\\ &=b n x-x \left (a+b \log \left (c x^n\right )\right )+\frac {(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac {(b n) \int \frac {(1+e x) \log (1+e x)}{x} \, dx}{e}\\ &=b n x-x \left (a+b \log \left (c x^n\right )\right )+\frac {(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac {(b n) \text {Subst}\left (\int \frac {x \log (x)}{-\frac {1}{e}+\frac {x}{e}} \, dx,x,1+e x\right )}{e^2}\\ &=b n x-x \left (a+b \log \left (c x^n\right )\right )+\frac {(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac {(b n) \text {Subst}\left (\int \left (e \log (x)+\frac {e \log (x)}{-1+x}\right ) \, dx,x,1+e x\right )}{e^2}\\ &=b n x-x \left (a+b \log \left (c x^n\right )\right )+\frac {(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}-\frac {(b n) \text {Subst}(\int \log (x) \, dx,x,1+e x)}{e}-\frac {(b n) \text {Subst}\left (\int \frac {\log (x)}{-1+x} \, dx,x,1+e x\right )}{e}\\ &=2 b n x-x \left (a+b \log \left (c x^n\right )\right )-\frac {b n (1+e x) \log (1+e x)}{e}+\frac {(1+e x) \left (a+b \log \left (c x^n\right )\right ) \log (1+e x)}{e}+\frac {b n \text {Li}_2(-e x)}{e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 90, normalized size = 1.22 \begin {gather*} \frac {-a e x+2 b e n x+a \log (1+e x)-b n \log (1+e x)+a e x \log (1+e x)-b e n x \log (1+e x)+b \log \left (c x^n\right ) (-e x+(1+e x) \log (1+e x))+b n \text {Li}_2(-e x)}{e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.09, size = 557, normalized size = 7.53
method | result | size |
risch | \(x \ln \left (e x +1\right ) a -\frac {b n \ln \left (e x +1\right )}{e}+\frac {a \ln \left (e x +1\right )}{e}-\ln \left (c \right ) b x -\frac {i \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 e}-\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} x}{2}-\frac {i \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} x}{2}-\frac {i \ln \left (e x +1\right ) \pi x b \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}-\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 e}-\frac {i \ln \left (e x +1\right ) \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2 e}+\frac {i \ln \left (e x +1\right ) \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 e}-\frac {b \ln \left (c \right )}{e}+2 b n x -\frac {i \ln \left (e x +1\right ) \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2 e}-\frac {i \ln \left (e x +1\right ) \pi x b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2}-\frac {a}{e}+\frac {2 b n}{e}-n b x \ln \left (e x +1\right )-a x +\frac {b n \dilog \left (e x +1\right )}{e}+\ln \left (e x +1\right ) \ln \left (c \right ) x b +\frac {\ln \left (e x +1\right ) b \ln \left (c \right )}{e}+\frac {i \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2 e}+\frac {i \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3} x}{2}+\left (b x \ln \left (e x +1\right )+\frac {b \left (-e x +\ln \left (e x +1\right )\right )}{e}\right ) \ln \left (x^{n}\right )+\frac {i \ln \left (e x +1\right ) \pi x b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2}+\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2 e}+\frac {i \ln \left (e x +1\right ) \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 e}+\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) x}{2}+\frac {i \ln \left (e x +1\right ) \pi x b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2}\) | \(557\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 127, normalized size = 1.72 \begin {gather*} {\left (\log \left (x e + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-x e\right )\right )} b n e^{\left (-1\right )} - {\left (b {\left (n - \log \left (c\right )\right )} - a\right )} e^{\left (-1\right )} \log \left (x e + 1\right ) + {\left ({\left (b {\left (2 \, n - \log \left (c\right )\right )} - a\right )} x e - {\left ({\left (b {\left (n - \log \left (c\right )\right )} - a\right )} x e + b n \log \left (x\right )\right )} \log \left (x e + 1\right ) - {\left (b x e - {\left (b x e + b\right )} \log \left (x e + 1\right )\right )} \log \left (x^{n}\right )\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 176.72, size = 194, normalized size = 2.62 \begin {gather*} a \left (\begin {cases} 0 & \text {for}\: e = 0 \\x \log {\left (e x + 1 \right )} - x + \frac {\log {\left (e x + 1 \right )}}{e} - \frac {1}{e} & \text {otherwise} \end {cases}\right ) - b e^{2} n \left (\begin {cases} \frac {x}{e^{2}} - \frac {\log {\left (e x + 1 \right )}}{e^{3}} & \text {for}\: e = 0 \\\frac {\log {\left (e x + 1 \right )}^{2}}{2 e^{3}} & \text {otherwise} \end {cases}\right ) - b n x \log {\left (e x + 1 \right )} + 2 b n x - b n \left (\begin {cases} 0 & \text {for}\: e = 0 \\\frac {\log {\left (e x + 1 \right )}^{2}}{2 e} & \text {otherwise} \end {cases}\right ) + b n \left (\begin {cases} x & \text {for}\: e = 0 \\\frac {\log {\left (e x + 1 \right )}}{e} & \text {otherwise} \end {cases}\right ) \log {\left (e x + 1 \right )} - b n \left (\begin {cases} x & \text {for}\: e = 0 \\\frac {\log {\left (e x + 1 \right )}}{e} & \text {otherwise} \end {cases}\right ) - b n \left (\begin {cases} x & \text {for}\: e = 0 \\- \frac {\operatorname {Li}_{2}\left (e x e^{i \pi }\right )}{e} & \text {otherwise} \end {cases}\right ) + b x \log {\left (c x^{n} \right )} \log {\left (e x + 1 \right )} - b x \log {\left (c x^{n} \right )} + b \left (\begin {cases} x & \text {for}\: e = 0 \\\frac {\log {\left (e x + 1 \right )}}{e} & \text {otherwise} \end {cases}\right ) \log {\left (c x^{n} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \ln \left (e\,x+1\right )\,\left (a+b\,\ln \left (c\,x^n\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________